using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class UnusualWaybillReplyMap : EntityTypeConfiguration<UnusualWaybillReply>
	{
		public UnusualWaybillReplyMap()
		{
			// Primary Key
			this.HasKey(t => t.ReplyID);

			// Properties
			this.Property(t => t.ReplyContect)
				.HasMaxLength(200);
				
			// Table & Column Mappings
			this.ToTable("UnusualWaybillReply");
			this.Property(t => t.ReplyID).HasColumnName("ReplyID");
			this.Property(t => t.UnusualWaybillID).HasColumnName("UnusualWaybillID");
			this.Property(t => t.WaybillNO).HasColumnName("WaybillNO");
			this.Property(t => t.ReplyManID).HasColumnName("ReplyManID");
			this.Property(t => t.ReplyStationID).HasColumnName("ReplyStationID");
			this.Property(t => t.ReplyContect).HasColumnName("ReplyContect");
			this.Property(t => t.ReplyTime).HasColumnName("ReplyTime");
			this.Property(t => t.CreatBy).HasColumnName("CreatBy");
			this.Property(t => t.CreatStation).HasColumnName("CreatStation");
			this.Property(t => t.CreatTime).HasColumnName("CreatTime");
			this.Property(t => t.UpdateBy).HasColumnName("UpdateBy");
			this.Property(t => t.UpdateStation).HasColumnName("UpdateStation");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
		}
	}
}

